func runtime.getg

272 uses

	runtime (current package)
		arena.go#L465: 	if mp.gsignal == getg() {
		arena.go#L653: 	if mp.gsignal == getg() {
		arena.go#L721: 		if inittrace.active && inittrace.id == getg().goid {
		atomic_pointer.go#L24: 	buf := getg().m.p.ptr().wbBuf.get2()
		cgo_sigaction.go#L47: 			g = getg()
		cgocall.go#L137: 	mp := getg().m
		cgocall.go#L213: 	gp := getg()
		cgocall.go#L269: 	gp := getg()
		cgocheck.go#L41: 	gp := getg()
		chan.go#L238: 	gp := getg()
		chan.go#L562: 	gp := getg()
		checkptr.go#L81: 	if gp := getg(); gp.stack.lo <= uintptr(p) && uintptr(p) < gp.stack.hi {
		debug.go#L88: 	gp := getg()
		debug.go#L107: 	gp := getg()
		debugcall.go#L31: 	if getg() != getg().m.curg {
		debugcall.go#L34: 	if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
		debugcall.go#L107: 	gp := getg()
		debugcall.go#L201: 	gp := getg()
		debugcall.go#L210: 	getg().schedlink.set(callingG)
		debuglog.go#L111: 	gp := getg()
		heapdump.go#L697: 	gp := getg()
		iface.go#L127: 	if getg().m.mallocing != 0 {
		lock_futex.go#L52: 	gp := getg()
		lock_futex.go#L124: 	gp := getg()
		lock_futex.go#L149: 	gp := getg()
		lock_futex.go#L174: 	gp := getg()
		lock_futex.go#L220: 	gp := getg()
		lock_futex.go#L231: 	gp := getg()
		malloc.go#L998: 		if inittrace.active && inittrace.id == getg().goid {
		malloc.go#L1013: 	if mp.gsignal == getg() {
		malloc.go#L1232: 		if inittrace.active && inittrace.id == getg().goid {
		malloc.go#L1279: 		assistG = getg()
		malloc.go#L1311: 		if getg().preempt {
		malloc.go#L1384: 		if gp := getg(); gp == gp.m.gsignal {
		mbitmap.go#L320: 	getg().m.traceback = 2
		mbitmap.go#L574: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L618: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L644: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L704: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1472: 	if gp := getg(); gp.m.curg.stack.lo <= uintptr(p) && uintptr(p) < gp.m.curg.stack.hi {
		mcheckmark.go#L87: 		getg().m.traceback = 2
		mfinal.go#L183: 	gp := getg()
		mgc.go#L296: 	p := getg().m.p.ptr()
		mgc.go#L525: 		work.sweepWaiters.list.push(getg())
		mgc.go#L606: 	if gp := getg(); gp == mp.g0 || mp.locks > 1 || mp.preemptoff != "" {
		mgc.go#L831: 		gp := getg().m.curg
		mgc.go#L874: 	getg().m.preemptoff = "gcing"
		mgc.go#L900: 		getg().m.preemptoff = ""
		mgc.go#L981: 			gcw := &getg().m.p.ptr().gcw
		mgc.go#L983: 			wbBufFlush1(getg().m.p.ptr())
		mgc.go#L1262: 	gp := getg()
		mgc.go#L1732: 	gp := getg()
		mgc.go#L1801: 	gp := getg()
		mgcmark.go#L219: 			userG := getg().m.curg
		mgcmark.go#L409: 	if getg() == gp.m.g0 {
		mgcmark.go#L412: 	if mp := getg().m; mp.locks > 0 || mp.preemptoff != "" {
		mgcmark.go#L567: 	gcw := &getg().m.p.ptr().gcw
		mgcmark.go#L635: 	gp := getg()
		mgcmark.go#L753: 	if gp == getg() {
		mgcmark.go#L770: 	p := getg().m.p.ptr()
		mgcmark.go#L1041: 	gp := getg().m.curg
		mgcmark.go#L1161: 	gp := getg().m.curg
		mgcmark.go#L1446: 		gcw := &getg().m.p.ptr().gcw
		mgcmark.go#L1475: 			getg().m.traceback = 2
		mgcmark.go#L1579: 	gcw := &getg().m.p.ptr().gcw
		mgcpacer.go#L709: 	gp := getg()
		mgcscavenge.go#L361: 	s.g = getg()
		mgcscavenge.go#L421: 	if getg() != s.g {
		mgcscavenge.go#L467: 	if getg() != s.g {
		mgcscavenge.go#L578: 	if getg() != s.g {
		mgcscavenge.go#L780: 				pageTraceScav(getg().m.p.ptr(), 0, addr, uintptr(npages))
		mgcsweep.go#L274: 	sweep.g = getg()
		mgcsweep.go#L357: 	gp := getg()
		mgcsweep.go#L466: 	gp := getg()
		mgcsweep.go#L505: 	gp := getg()
		mgcsweep.go#L663: 		getg().m.p.ptr().trace.reclaimed += uintptr(nfreed) * s.elemsize
		mgcwork.go#L476: 		gp := getg().m.curg
		mheap.go#L1089: 	pp := getg().m.p.ptr()
		mheap.go#L1114: 	pp := getg().m.p.ptr()
		mheap.go#L1146: 	pp := getg().m.p.ptr()
		mheap.go#L1177: 	gp := getg()
		mheap.go#L1551: 		pageTraceFree(getg().m.p.ptr(), 0, s.base(), s.npages)
		mheap.go#L1583: 	pageTraceFree(getg().m.p.ptr(), 0, s.base(), s.npages)
		mheap.go#L1657: 	gp := getg()
		mprof.go#L501: 	gp := getg()
		mprof.go#L902: 	ourg := getg()
		mprof.go#L1007: 	if getg().m.p.ptr() == nil {
		mprof.go#L1096: 	gp := getg()
		mprof.go#L1195: 		gp := getg()
		mprof.go#L1199: 			g0 := getg()
		mprof.go#L1228: 	gp := getg()
		mprof.go#L1253: 	gp := getg()
		mprof.go#L1269: 	gp := getg()
		mstats.go#L769: 	if pp := getg().m.p.ptr(); pp != nil {
		mstats.go#L798: 	if pp := getg().m.p.ptr(); pp != nil {
		mwbbuf.go#L170: 	if getg().m.dying > 0 {
		mwbbuf.go#L174: 		getg().m.p.ptr().wbBuf.discard()
		mwbbuf.go#L181: 		wbBufFlush1(getg().m.p.ptr())
		os_linux.go#L415: 	getg().m.procid = uint64(gettid())
		os_linux.go#L634: 	mp := getg().m
		os_linux.go#L787: 		releasem(getg().m)
		os_linux.go#L849: 	gp := getg()
		os_linux.go#L872: 	releasem(getg().m)
		os_linux.go#L886: 	gp := getg()
		panic.go#L62: 	gp := getg()
		panic.go#L76: 	gp := getg()
		panic.go#L272: 	gp := getg()
		panic.go#L309: 	gp := getg()
		panic.go#L450: 	gp := getg()
		panic.go#L493: 	gp := getg()
		panic.go#L835: 	gp := getg()
		panic.go#L1045: 	gp := getg()
		panic.go#L1155: 	gp := getg()
		panic.go#L1191: 	gp := getg()
		panic.go#L1238: 	gp := getg()
		panic.go#L1340: 	gp := getg()
		preempt.go#L105: 	if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
		preempt.go#L302: 	gp := getg()
		print.go#L66: 	mp := getg().m
		print.go#L76: 	mp := getg().m
		print.go#L90: 	gp := getg()
		proc.go#L145: 	mp := getg().m
		proc.go#L194: 		inittrace.id = getg().goid
		proc.go#L314: 	forcegc.g = getg()
		proc.go#L355: 	gp := getg()
		proc.go#L471: 	gp := getg()
		proc.go#L532: 	gp := getg()
		proc.go#L714: 	gp := getg()
		proc.go#L782: 	thisg := getg()
		proc.go#L824: 	gp := getg()
		proc.go#L1259: 	gp := getg()
		proc.go#L1355: 	gp := getg()
		proc.go#L1532: 	gp := getg()
		proc.go#L1574: 	gp := getg()
		proc.go#L1631: 	gp := getg()
		proc.go#L1647: 	mp := getg().m
		proc.go#L1762: 	pp := getg().m.p.ptr()
		proc.go#L1853: 	p := getg().m.p.ptr()
		proc.go#L1897: 	gp := getg()
		proc.go#L2046: 	gp := getg()
		proc.go#L2187: 	mp := getg().m
		proc.go#L2233: 	g := getg()
		proc.go#L2244: 	return uintptr(unsafe.Pointer(getg().m))
		proc.go#L2401: 	if gp := getg(); gp != nil && gp.m != nil && (gp.m.lockedExt != 0 || gp.m.incgo) && GOOS != "plan9" {
		proc.go#L2427: 		releasem(getg().m)
		proc.go#L2431: 	releasem(getg().m)
		proc.go#L2521: 	gp := getg()
		proc.go#L2543: 	getg().m.spinning = true
		proc.go#L2768: 	gp := getg()
		proc.go#L2797: 	if mp == getg().m {
		proc.go#L2814: 	gp := getg()
		proc.go#L2848: 	mp := getg().m
		proc.go#L2892: 	mp := getg().m
		proc.go#L3241: 	p := getg().m.p.ptr()
		proc.go#L3261: 	pp := getg().m.p.ptr()
		proc.go#L3454: 	gp := getg()
		proc.go#L3522: 	pp := getg().m.p.ptr()
		proc.go#L3554: 	mp := getg().m
		proc.go#L3643: 	gp := getg()
		proc.go#L3681: 		if pp != getg().m.p.ptr() || int(pp.deletedTimers.Load()) <= int(pp.numTimers.Load()/4) {
		proc.go#L3706: 	if pp == getg().m.p.ptr() && int(pp.deletedTimers.Load()) > len(pp.timers)/4 {
		proc.go#L3722: 	mp := getg().m
		proc.go#L3862: 	mp := getg().m
		proc.go#L3933: 	gp := getg()
		proc.go#L3994: 	gp := getg()
		proc.go#L4077: 	gp := getg()
		proc.go#L4098: 	gp := getg()
		proc.go#L4140: 		traceGoSysBlock(getg().m.p.ptr())
		proc.go#L4158: 	gp := getg()
		proc.go#L4241: 	gp := getg()
		proc.go#L4285: 	gp := getg()
		proc.go#L4367: 	gp := getg().m.curg
		proc.go#L4388: 	gp := getg().m.curg
		proc.go#L4424: 	msigrestore(getg().m.sigmask)
		proc.go#L4478: 	gp := getg()
		proc.go#L4483: 		pp := getg().m.p.ptr()
		proc.go#L4762: 	gp := getg()
		proc.go#L4790: 	gp := getg()
		proc.go#L4801: 	getg().m.lockedInt++
		proc.go#L4814: 	gp := getg()
		proc.go#L4837: 	gp := getg()
		proc.go#L4847: 	gp := getg()
		proc.go#L4936: 	getg().m.mallocing++
		proc.go#L5009: 	getg().m.mallocing--
		proc.go#L5022: 	gp := getg()
		proc.go#L5109: 		plocal := getg().m.p.ptr()
		proc.go#L5159: 			mp := getg().m
		proc.go#L5245: 	gp := getg()
		proc.go#L5348: 	gp := getg()
		proc.go#L5368: 	gp := getg()
		proc.go#L5771: 	if mp == nil || mp == getg().m {
		proc.go#L6568: 	gp := getg()
		proc.go#L6577: 	gp := getg()
		proc.go#L6618: 	if p := getg().m.p.ptr(); !runqempty(p) {
		proflabel.go#L34: 	getg().labels = labels
		proflabel.go#L39: 	return getg().labels
		rdebug.go#L18: 	gp := getg()
		runtime1.go#L38: 	gp := getg()
		runtime1.go#L573: 	gp := getg()
		runtime1.go#L580: 	gp := getg()
		rwmutex.go#L50: 				m := getg().m
		rwmutex.go#L78: 	releasem(getg().m)
		rwmutex.go#L85: 	m := getg().m
		select.go#L289: 	gp = getg()
		sema.go#L115: 	gp := getg()
		sema.go#L211: 		if s.ticket == 1 && getg().m.locks == 0 {
		sema.go#L247: 	s.g = getg()
		sema.go#L513: 	s.g = getg()
		signal_unix.go#L330: 	getg().m.profilehz = hz
		signal_unix.go#L417: 	return getg()
		signal_unix.go#L622: 	gsignal := getg()
		signal_unix.go#L843: 	gp := getg()
		signal_unix.go#L1233: 	mp := getg().m
		signal_unix.go#L1254: 	nmask := getg().m.sigmask
		signal_unix.go#L1268: 	if getg().m.newSigstack {
		signal_unix.go#L1278: 		restoreGsignalStack(&getg().m.goSigStack)
		signal_unix.go#L1323: 	gp := getg()
		signal_unix.go#L1343: 	gp := getg().m.gsignal
		signal_unix.go#L1366: 	gp := getg()
		stack.go#L340: 	thisg := getg()
		stack.go#L440: 	gp := getg()
		stack.go#L625: 				getg().m.traceback = 2
		stack.go#L871: 	gcController.addScannableStack(getg().m.p.ptr(), int64(newsize)-int64(old.hi-old.lo))
		stack.go#L967: 	thisg := getg()
		stack.go#L1172: 		if !(gp == getg().m.curg && getg() != getg().m.curg && s == _Grunning) {
		stack.go#L1183: 	if gp == getg().m.curg && gp.m.libcallsp != 0 {
		string.go#L122: 	stk := getg().stack
		stubs.go#L24: func getg() *g
		stubs.go#L125: 	mp := getg().m
		stubs.go#L158: 	mp := getg().m
		time.go#L183: 	gp := getg()
		time.go#L277: 	pp := getg().m.p.ptr()
		time.go#L506: 		pp := getg().m.p.ptr()
		time.go#L563: 	gp := getg()
		time.go#L843: 		ppcur := getg().m.p.ptr()
		time.go#L876: 		gp := getg()
		time.go#L890: 		gp := getg()
		trace.go#L310: 	mp := getg().m
		trace.go#L334: 			gp.trace.lastP = getg().m.p
		trace.go#L353: 			gp.trace.lastP = getg().m.p
		trace.go#L566: 		if getg().racectx != 0 {
		trace.go#L569: 		getg().racectx = getg().m.curg.racectx
		trace.go#L572: 		defer func() { getg().racectx = 0 }()
		trace.go#L766: 		if getg() == mp.curg {
		trace.go#L963: 	gp := getg()
		trace.go#L1484: 	traceEvent(traceEvProcStart, -1, uint64(getg().m.id))
		trace.go#L1513: 	getg().m.trace.tracedSTWStart = true
		trace.go#L1518: 	mp := getg().m
		trace.go#L1534: 	pp := getg().m.p.ptr()
		trace.go#L1546: 	pp := getg().m.p.ptr()
		trace.go#L1556: 	pp := getg().m.p.ptr()
		trace.go#L1576: 	newg.trace.lastP = getg().m.p
		trace.go#L1583: 	gp := getg().m.curg
		trace.go#L1601: 	gp := getg()
		trace.go#L1607: 	gp := getg()
		trace.go#L1619: 	pp := getg().m.p
		trace.go#L1646: 	getg().m.curg.trace.tracedSyscallEnter = true
		trace.go#L1651: 	gp := getg().m.curg
		traceback.go#L136: 	if ourg := getg(); ourg == gp && ourg == ourg.m.curg {
		traceback.go#L1105: 	gp := getg()
		traceback.go#L1124: 	mp := getg().m
		traceback.go#L1226: 	curgp := getg().m.curg
		traceback.go#L1250: 		if gp.m != getg().m && readgstatus(gp)&^_Gscan == _Grunning {
		traceback.go#L1606: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		traceback.go#L1626: 	if panicking.Load() > 0 || getg().m.curg != getg() {